﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CsharpTpl.common
{
    public class Utils
    {
        public static bool NotNull(Control box, Label label)
        {
            if (string.IsNullOrEmpty(box.Text))
            {
                MessageBox.Show(label.Text + "不能为空!");
                box.Focus();
                return false;
            }
            else
            {
                return true;
            }
        }
    }
}
